package com.lagou.homework_1_4;

//测试 Staff类和自定义异常类
public class StaffTest {

    public static void main(String[] args) {

        //创建对象及异常的捕获
        Staff s = null;
        try {
            s = new Staff("小红",3);
        } catch (AgeException e) {
            e.printStackTrace();
        }
        System.out.println("s = "+s);
    }
}
